var api = frameElement.api;
var id = api.data.id;
var parame = {status:["禁用","激活"]};

var model = avalon.define({$id:'view',data:{}});

avalon.filters.status = function(str){
	return parame.status[str];
}
avalon.filters.money = function(str){
	return Public.numToCurrency(str);
}

var THISPAGE = {
	init : function() {
		
		if ( id != '' )
		{
			Public.ajaxPost( rootPath + "/scm/product/qryOp.json", {id:id}, function(json){
				if ( json.status == 200 )
				{
					model.data=json.data
				} else
				{
					parent.Public.tips({type: 1, content: json.msg});
				}
			})
		}
		
	}
};
THISPAGE.init();